package com.ruoyi.manager.service.impl.impl;

import com.ruoyi.manager.mapper.TeacherAnalysisMapper;
import com.ruoyi.manager.service.TeachAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;
@Service
public class TeachAnalysisServiceImpl implements TeachAnalysisService {

    @Autowired
    TeacherAnalysisMapper teacherAnalysisMapper;


//    田豪举部分
//    当周所有班级学员核心作业完成率
    @Override
    public Map<String, Object> findClassesCoreTaskCompleteRate() {
        return teacherAnalysisMapper.findClassesCoreTaskCompleteRate();
    }
    //    当周所有班级学员核心作业提交率
    @Override
    public Map<String, Object> findClassesCoreSubmitRate() {
        return teacherAnalysisMapper.findClassesCoreSubmitRate();
    }
    //    当周所有班级学员核心作业完成率低于40%占比
    @Override
    public Map<String, Object> findClassesCoreTaskCompleteRateLt40() {
        return teacherAnalysisMapper.findClassesCoreTaskCompleteRateLt40();
    }
    //    当周所有班级学员核心作业完成率大于80%占比
    @Override
    public Map<String, Object> findClassesCoreTaskCompleteRateGt80() {
        return teacherAnalysisMapper.findClassesCoreTaskCompleteRateGt80();
    }
    //    当周核心作业完成率低于40%学员列表
    @Override
    public List<Map<String, Object>> listClassesCoreTaskCompleteRateLt40() {
        return teacherAnalysisMapper.listClassesCoreTaskCompleteRateLt40();
    }
    //    统计在训的每个班级当周平均核心作业完成率和提交率
    @Override
    public List<Map<String, Object>> listEveryClassesCoreTaskCompleteRateAndCoreSubmitRate() {
        return teacherAnalysisMapper.listEveryClassesCoreTaskCompleteRateAndCoreSubmitRate();
    }



    /*史明芳部分*/
    //所有在训班级当周总成绩和平均成绩
    @Override
    public Map<String,Object> totalAveragePoint() {
        return teacherAnalysisMapper.totalAveragePoint();
    }

    //在训各班级当周平均成绩
    @Override
    public List<Map<String, Object>> classAveragePoint() {
        return teacherAnalysisMapper.classAveragePoint();
    }

    //当周学员成绩分类
    @Override
    public Map<String, Object> studentClassify() {
        return teacherAnalysisMapper.studentClassify();
    }

    //学员各省就业空间展示
    @Override
    public List<Map<String,Object>> employmentSpace(){
        return teacherAnalysisMapper.employmentSpace();
    }

    /* 陈春雨部分 */

    //在训班级整体分析
    @Override
    public List<Map<String,Object>> listClassInfor(){
        return teacherAnalysisMapper.listClassInfor();
    }
    //当周各班级考核次数
    @Override
    public List<Map<String,Object>> listExamInfor(){
        return teacherAnalysisMapper.listExamInfor();
    }
    @Override
    public List<Map<String, Object>> listTaskInfor() {
        return teacherAnalysisMapper.listTaskInfor();
    }

    //王家乐部分--地图
    @Override

    public List<Map<String, Object>> listCity() {
        return teacherAnalysisMapper.listCity();
    }

}
